import {inject} from '@loopback/core';
<%if (isRepositoryBaseBuiltin) {  -%>
import {<%= repositoryTypeClass %>, juggler} from '@loopback/repository';
<% } -%>
import {<%= dataSourceClassName %>} from '../datasources';
import {<%= modelName %>} from '../models';
<%if ( !isRepositoryBaseBuiltin ) { -%>
import {<%=repositoryBaseClass %>} from './<%=repositoryBaseFile %>';
<% } -%>

<% if (isRepositoryBaseBuiltin) { %>export class <%= className %>Repository extends <%= repositoryTypeClass %><
  <%} else { %>export class <%= className %>Repository extends <%= repositoryBaseClass %><
  <% } %><%= modelName %>
> {
  constructor(
    @inject('datasources.<%= dataSourceName %>') dataSource: <%= dataSourceClassName %>,
  ) {
    super(<%= modelName %>, dataSource);
  }
}
